package com.zr.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.CarDao;
import com.zr.service.CarSreivce;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

@Service("carService")
public class CarSerivceImpl<Car> implements CarSreivce{
@Resource 
private CarDao carDao;
	@Override
	public JSONObject findCarMsg(int page, int rows) {
		JSONObject  obj  = new JSONObject();
		obj.put("total", carDao.findCarCount());
		obj.put("rows", carDao.findUserMsg(page, rows));
		return obj;
		
	}

}
